package tool

import (
	"encoding/json"
	"io"
)

type JsonParse struct {
}

func Decode(io io.ReadCloser, v interface{}) error {
	if err := json.NewDecoder(io).Decode(v); err != nil {
		return err
	}
	return nil
}
